
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>项目搭建</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    <meta name="keywords" content="">
    <meta name="HandheldFriendly" content="true">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="shortcut icon" href="http://cdn.zitiao.org/favicon.ico" type="image/x-icon">
    
    <link rel="stylesheet" href="assets/website/page_custom.min.css">
    <script type="text/javascript" src="http://cdn.zitiao.org/www-tongji.js"></script>
    
    <link rel="next" href="run.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="gb-page-wrapper">
    <header class="gb-page-header">
        <div class="container">
        
            <!-- search_input -->
            <div id="book-search-input" role="search">
                <input type="text" placeholder="输入并搜索" />
            </div>
            <!-- search_input -->

            
            <a href="." class="logo">
                <!-- <img src="images/logo.png"> -->
                <img src="http://cdn.zitiao.org/logo.png"/>
            </a>
            
            <a href="." class="logo">
                <h1>通过 GitBook 开源框架和 GitHub 私有化部署 Wiki 文档</h1>
            </a>
        
        </div>
    </header>

    <div class="gb-page-body">
        <div class="gb-page-inner">
            <div class="container">
                <div class="row">
                    <div class="col-md-3">
                        



    
    <div class="panel panel-default">
        

        <div class="list-group">
            
    
        
        <a href="./" class="list-group-item ">
        

            

            

            关于

        
        </a>
        

        
    
        
        <a href="create.html" class="list-group-item active">
        

            

            

            项目搭建

        
        </a>
        

        
    
        
        <a href="run.html" class="list-group-item ">
        

            

            

            运行部署

        
        </a>
        

        
    
        
        <a href="update.html" class="list-group-item ">
        

            

            

            更新文档

        
        </a>
        

        
    
        
        <a href="advanced.html" class="list-group-item ">
        

            

            

            进阶功能

        
        </a>
        

        
    

        </div>
    </div>
    



                    </div>
                    <div class="col-md-9">
                        <!-- search_result -->
                        <div id="book-search-results">
                            <div class="search-noresults">
                                
                                <!-- page -->
                                
                                <div class="gb-markdown book-page-inner page-inner">
                                    <h1 id="&#x9879;&#x76EE;&#x642D;&#x5EFA;">&#x9879;&#x76EE;&#x642D;&#x5EFA;</h1>
<h2 id="&#x4E00;&#x3001;fork-&#x793A;&#x4F8B;&#x9879;&#x76EE;">&#x4E00;&#x3001;Fork &#x793A;&#x4F8B;&#x9879;&#x76EE;</h2>
<p>&#x793A;&#x4F8B;&#x9879;&#x76EE;&#xFF1A;<a href="https://github.com/zitiaocn/simple" target="_blank">https://github.com/zitiaocn/simple</a></p>
<h2 id="&#x4E8C;&#x3001;&#x9879;&#x76EE;&#x7ED3;&#x6784;">&#x4E8C;&#x3001;&#x9879;&#x76EE;&#x7ED3;&#x6784;</h2>
<p>&#x8FD9;&#x91CC;&#x53EA;&#x7F57;&#x5217;&#x9700;&#x8981;&#x5173;&#x6CE8;&#x7684;&#x90E8;&#x5206;&#xFF0C;&#x6211;&#x4EEC;&#x7684;&#x521D;&#x8877;&#x662F;&#x5148;&#x4EE5;&#x6700;&#x5C0F;&#x7684;&#x4EE3;&#x4EF7;&#x5C06;&#x9879;&#x76EE;&#x8DD1;&#x8D77;&#x6765;&#x518D;&#x8BF4;&#xFF0C;&#x81F3;&#x4E8E;&#x4F18;&#x5316;&#x6216;&#x8FDB;&#x9636;&#x7684;&#x529F;&#x80FD;&#x540E;&#x9762;&#x518D;&#x53BB;&#x6478;&#x7D22;&#xFF0C;&#x8BB2;&#x7684;&#x592A;&#x591A;&#x53CD;&#x5012;&#x5BB9;&#x6613;&#x8BA9;&#x4EBA;&#x89C9;&#x5F97;&#x8FD9;&#x4E2A;&#x6846;&#x67B6;&#x5F88;&#x590D;&#x6742;&#x3002;  </p>
<ul>
<li>images <code>&#x7528;&#x4E8E;&#x5B58;&#x653E;&#x56FE;&#x7247;</code>   </li>
<li>README.md <code>&#x5173;&#x4E8E;&#x6587;&#x6863;&#xFF0C;&#x5728; SUMMARY.md &#x8FDB;&#x884C;&#x914D;&#x7F6E;</code>   </li>
<li>SUMMARY.md <code>&#x6587;&#x6863;&#x76EE;&#x5F55;</code>      </li>
<li>book.json <code>&#x6587;&#x6863;&#x6846;&#x67B6;&#xFF0C;&#x6700;&#x6838;&#x5FC3;&#x7684;&#x6587;&#x4EF6;</code>      </li>
<li>deploy.md <code>&#x4E00;&#x4E2A;&#x793A;&#x4F8B;&#x6587;&#x6863;&#xFF0C;&#x53EF;&#x4EE5;&#x5220;&#x9664;</code>  </li>
</ul>
<p>&#x4E0B;&#x9762;&#x91CD;&#x70B9;&#x9610;&#x8FF0;&#x51E0;&#x4E2A;&#x6587;&#x4EF6;&#xFF1A;</p>
<h3 id="1&#x3001;summarymd">1&#x3001;SUMMARY.md</h3>
<p>&#x6587;&#x6863;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#xFF0C;&#x6240;&#x6709;&#x9700;&#x8981;&#x5C55;&#x793A;&#x7684;&#x6587;&#x6863;&#x90FD;&#x9700;&#x8981;&#x5728;&#x5B83;&#x91CC;&#x9762;&#x8FDB;&#x884C;&#x7F57;&#x5217;&#x3002;</p>
<p>&#x8BE6;&#x7EC6; GitBook &#x5B98;&#x65B9;&#x82F1;&#x6587;&#x6587;&#x6863;&#xFF1A;<a href="https://toolchain.gitbook.com/pages.html" target="_blank">https://toolchain.gitbook.com/pages.html</a></p>
<blockquote>
<p>&#x6CE8;&#xFF1A;GitBook &#x652F;&#x6301;&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x4F46;&#x662F;&#x6587;&#x4EF6;&#x5939;&#x7684;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x5FC5;&#x987B;&#x8981;&#x6307;&#x5B9A;&#x6587;&#x4EF6;&#xFF0C;&#x5426;&#x5219;&#x5728;&#x524D;&#x53F0;&#x7684;&#x83DC;&#x5355;&#x4E2D;&#x70B9;&#x51FB;&#x7236;&#x7EA7;&#x76EE;&#x5F55;&#x7684;&#x65F6;&#x5019;&#x65E0;&#x6CD5;&#x5C55;&#x5F00;&#x3002;&#x6BD4;&#x5982;&#x8BF4;&#x6709;&#x4E00;&#x4E2A;&#x6587;&#x6863;&#x8DEF;&#x5F84;&#x662F;&#xFF1A;<br><code>xxx.com/simple/create.html</code><br> &#x90A3;&#x4E48; <code>xxx.com/simple/</code> &#x5FC5;&#x987B;&#x8981;&#x5BF9;&#x5E94;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#xFF0C;&#x5728; <code>SUMMARY.md</code> &#x91CC;&#x9762;&#xFF1B;&#x5426;&#x5219;&#x70B9;&#x51FB; <code>create.html</code> &#x7236;&#x7EA7;&#x83DC;&#x5355;&#x5C06;&#x4E0D;&#x4F1A;&#x5C55;&#x5F00;&#x5B50;&#x83DC;&#x5355;&#x3002; </p>
</blockquote>
<h3 id="2&#x3001;bookjson">2&#x3001;book.json</h3>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x53C2;&#x6570;&#x6709; <code>root</code>&#xFF0C;&#x5C31;&#x662F;&#x6587;&#x6863;&#x5185;&#x5BB9;&#x7684;&#x6839;&#x76EE;&#x5F55;&#xFF0C;&#x5982;&#x679C;&#x6587;&#x6863;&#x7ED3;&#x6784;&#x5982;&#x4E0B;&#xFF1A;   </p>
<pre><code>-- book.json   
-- docs &#x5C31;&#x662F;&#x6587;&#x6863;&#x5168;&#x90E8;&#x653E;&#x5728;&#x8FD9;&#x4E2A;&#x76EE;&#x5F55;&#x4E0B;   
----doc1.md  
----doc2.md
</code></pre><p>&#x90A3;&#x4E48; book.json &#x4E2D; root &#x7684;&#x503C;&#x5E94;&#x8BE5;&#x662F; <code>./docs</code>&#x3002;     </p>
<pre><code>head_title
head_description
head_keywords
</code></pre><p>&#x4E0A;&#x9762;&#x4E09;&#x4E2A;&#x53C2;&#x6570;&#x5728;&#x6807;&#x51C6;&#x7684; GitBook &#x6846;&#x67B6;&#x91CC;&#x9762;&#x6CA1;&#x6709;&#xFF0C;&#x662F;&#x6211;&#x4EEC;&#x81EA;&#x5DF1;&#x6539;&#x9020;&#x7684;&#xFF0C;&#x5C31;&#x662F;&#x9875;&#x9762; SEO &#x76F8;&#x5173;&#x7684; title&#x3001;description&#x3001;keywords&#x3002;  </p>
<p>&#x8FD8;&#x6709;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#x9700;&#x8981;&#x7559;&#x610F; <code>prefix</code>&#xFF0C;&#x5B83;&#x662F;&#x901A;&#x8FC7;&#x63D2;&#x4EF6;&#x81EA;&#x52A8;&#x751F;&#x6210; <code>sitemap.xml</code> &#x7F51;&#x7AD9;&#x5730;&#x56FE;&#x7684;&#x524D;&#x7F00;&#x8DEF;&#x5F84;&#xFF0C;&#x6211;&#x4EEC;&#x5F53;&#x524D;&#x751F;&#x6210;&#x7684;&#x5730;&#x56FE;&#x4E3A;&#xFF1A;<a href="http://zitiao.org/deploy/sitemap.xml" target="_blank">http://zitiao.org/deploy/sitemap.xml</a>      </p>
<p>&#x5176;&#x5B83;&#x6CA1;&#x6709;&#x63D0;&#x53CA;&#x7684;&#x53C2;&#x6570;&#x4FDD;&#x6301;&#x539F;&#x6837;&#xFF0C;&#x5982;&#x679C;&#x60F3;&#x8981;&#x6DF1;&#x5165;&#x4E86;&#x89E3;&#xFF0C;&#x8BF7;&#x53C2;&#x8003; GitBook &#x7684;&#x5B98;&#x65B9;&#x82F1;&#x6587;&#x6587;&#x6863;&#xFF1A;<a href="https://toolchain.gitbook.com/config.html" target="_blank">https://toolchain.gitbook.com/config.html</a>   </p>
<h2 id="&#x4E09;&#x3001;&#x4FEE;&#x6539;-bookjs-&#x6587;&#x4EF6;">&#x4E09;&#x3001;&#x4FEE;&#x6539; book.js &#x6587;&#x4EF6;</h2>
<p>&#x6309;&#x7167;&#x4E0A;&#x9762;&#x7AE0;&#x8282;&#x4E2D; book.js &#x5404;&#x4E2A;&#x5B57;&#x6BB5;&#x7684;&#x542B;&#x4E49;&#x8FDB;&#x884C;&#x4FEE;&#x6539;&#xFF0C;&#x4FEE;&#x6539;&#x6210;&#x9002;&#x5408;&#x81EA;&#x5DF1;&#x9879;&#x76EE;&#x7684;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;&#x3002;</p>
<h2 id="&#x56DB;&#x3001;&#x586B;&#x5145;&#x6587;&#x6863;&#x5185;&#x5BB9;">&#x56DB;&#x3001;&#x586B;&#x5145;&#x6587;&#x6863;&#x5185;&#x5BB9;</h2>
<h3 id="1&#x3001;summarymd">1&#x3001;SUMMARY.md</h3>
<p>&#x5B8C;&#x6210;&#x76EE;&#x5F55;&#x6587;&#x6863;&#xFF0C;&#x53EF;&#x4EE5;&#x53C2;&#x8003;&#x672C;&#x6587;&#x6863;&#x7684; <code>SUMMARY.md</code> &#x6587;&#x4EF6;&#x7684;&#x5199;&#x6CD5;&#xFF0C;&#x6BD4;&#x8F83;&#x7B80;&#x5355;&#xFF0C;&#x4E0D;&#x5C55;&#x5F00;&#x4E86;&#xFF1A;   </p>
<p><a href="https://github.com/zitiaocn/deploy/edit/master/SUMMARY.md" target="_blank">https://github.com/zitiaocn/deploy/edit/master/SUMMARY.md</a></p>
<h3 id="2&#x3001;&#x64B0;&#x5199;&#x5177;&#x4F53;&#x6587;&#x6863;&#x5185;&#x5BB9;">2&#x3001;&#x64B0;&#x5199;&#x5177;&#x4F53;&#x6587;&#x6863;&#x5185;&#x5BB9;</h3>
<p>&#x4E0D;&#x61C2; Git &#x4E5F;&#x6CA1;&#x5173;&#x7CFB;&#xFF0C;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x5728; GitHub &#x7684;&#x7F51;&#x9875;&#x7AEF;&#x5728;&#x7EBF;&#x7F16;&#x8F91;&#x3002;</p>
<p><strong>&#x5B8C;&#x6210;&#x4E0A;&#x9762;&#x7684;&#x6240;&#x6709;&#x5DE5;&#x4F5C;&#xFF0C;&#x4E0B;&#x4E00;&#x6B65;&#x5C31;&#x662F; <code>&#x9879;&#x76EE;&#x90E8;&#x7F72;</code>&#xFF0C;&#x8BF7;&#x770B;&#x4E0B;&#x4E00;&#x7AE0;&#x3002;</strong></p>

                                </div>
                                
                                <!-- page -->

                            </div>
                            <div class="search-results">
                                <div class="has-results">
                                    
                                    <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
                                    <ul class="search-results-list"></ul>
                                    
                                </div>
                                <div class="no-results">
                                    
                                    <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
                                    
                                </div>
                            </div>
                        </div>
                        <!-- search_result -->
                    </div>
                </div>
            </div>
        </div>
    </div>

    <footer class="gb-page-footer">
        <div class="container footer-container">
            <div class="copyright">
                © 2017 <a href="http://zitiao.org">字条网 zitiao.org</a> | 京ICP备16051867号-2
            </div>
        </div>
    </footer>
</div>

<script src="gitbook/gitbook.js"></script>

    
    <script src="gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
    

    
    <script src="gitbook/gitbook-plugin-search-pro/search.js"></script>
    

    
    <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
    


<script>
    var gitbook = gitbook || [];
    gitbook.push(function() {
        gitbook.page.hasChanged({"page":{"title":"项目搭建","level":"1.2","depth":1,"next":{"title":"运行部署","level":"1.3","depth":1,"path":"run.md","ref":"run.md","articles":[]},"previous":{"title":"关于","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","-fontsettings","-lunr","-search","search-pro","theme-official","sitemap-general","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"sitemap-general":{"prefix":"http://zitiao.org/deploy/"},"search-pro":{},"livereload":{},"highlight":{},"theme-official":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","logo":"./images/logo.png","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"通过 GitBook 开源框架和 GitHub 私有化部署 Wiki 文档","language":"zh-hans","gitbook":">= 3.0.0"},"file":{"path":"create.md","mtime":"2017-10-12T07:24:55.364Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-12T08:33:43.469Z"},"basePath":".","book":{"language":""}});
    });
</script>
<script>
    $('.book-page-inner h1,.book-page-inner h2,.book-page-inner h3,.book-page-inner h4,.book-page-inner h5,.book-page-inner h6').click(function(){
        var id = $(this).attr('id');
        if(id) {
            window.location.hash=id;
        }
    });
</script>

        
    </body>
</html>

